<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUserCommentBusinTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('user_comment_busin', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('user_id')->comment('用户id');
            $table->string('nick_name',255)->default('')->comment('用户昵称');
            $table->string('user_avatar',255)->default('')->comment('用户头像');
            $table->string('order_number',255)->comment('订单号');
            $table->integer('shop_id')->comment('商家id');
            $table->double('score',4,1)->default(0)->comment('评分');
            $table->string('content',255)->default('')->comment('评论内容');
            $table->string('picture',1024)->default('')->comment('评论图片');
            $table->string('comment_label',255)->default('')->comment('评论标签');
            $table->string('reply_content',255)->default('')->comment('回复内容');
            $table->dateTime('reply_time')->comment('回复时间');
            $table->integer('report_status')->default(0)->comment('举报状态0未举报1已举报2不处理3已删除');
            $table->string('report_content',255)->default('')->comment('举报内容');
            $table->dateTime('report_time')->comment('举报时间');
            $table->integer('is_del')->default(0)->comment('是否删除(1:已删除，0:)');
            $table->integer('admin_id')->default(0)->comment('操作人ID');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('user_comment_busin');
    }
}
